home *** CD-ROM | disk | FTP | other *** search
/ Aminet 32 / Aminet 32 (1999)(Schatztruhe)[!][Aug 1999].iso / Aminet / disk / misc / ADFlib.lha / Lib / adf_bitm.h < prev    next >
C/C++ Source or Header  |  1999-05-19  |  1KB  |  34 lines

  1. #ifndef ADF_BITM_H
  2. #define ADF_BITM_H
  3. /*
  4.  *  ADF Library. (C) 1997-1998 Laurent Clevy
  5.  *
  6.  *  adf_bitm.h
  7.  *
  8.  *  bitmap code
  9.  */
  10.  
  11. #include"adf_str.h"
  12. #include"prefix.h"
  13.  
  14. RETCODE adfReadBitmapBlock(struct Volume*, SECTNUM nSect, struct bBitmapBlock*);
  15. RETCODE adfWriteBitmapBlock(struct Volume*, SECTNUM nSect, struct bBitmapBlock*);
  16. RETCODE adfReadBitmapExtBlock(struct Volume*, SECTNUM nSect, struct bBitmapExtBlock*);
  17. RETCODE adfWriteBitmapExtBlock(struct Volume*, SECTNUM, struct bBitmapExtBlock* );
  18.  
  19. SECTNUM adfGet1FreeBlock(struct Volume *vol);
  20. RETCODE adfUpdateBitmap(struct Volume *vol);
  21. PREFIX long adfCountFreeBlocks(struct Volume* vol);
  22. RETCODE adfReadBitmap(struct Volume* , SECTNUM nBlock, struct bRootBlock* root);
  23. BOOL adfIsBlockFree(struct Volume* vol, SECTNUM nSect);
  24. void adfSetBlockFree(struct Volume* vol, SECTNUM nSect);
  25. void adfSetBlockUsed(struct Volume* vol, SECTNUM nSect);
  26. BOOL adfGetFreeBlocks(struct Volume* vol, int nbSect, SECTNUM* sectList);
  27. RETCODE adfCreateBitmap(struct Volume *vol);
  28. RETCODE adfWriteNewBitmap(struct Volume *vol);
  29. void adfFreeBitmap(struct Volume *vol);
  30.  
  31. #endif /* ADF_BITM_H */
  32.  
  33. /*#######################################################################################*/
  34.